package com.saladin.personalFinancialSystem.mapper;

import com.saladin.personalFinancialSystem.model.User;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;


@Repository
public interface UserMapper {
    /**
     * 根据用户名获得用户信息（包含密码和其他的信息）
     * @param userName
     * @return
     */
    @Select("select * from user where userName =#{userName}")
    public User getUserByUserName(String userName) ;
}
